<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
	<tr valign="top" align="left">
		<td class="head">
			<form name="cid_select" action="<{$mod_url}>/index.php?page=<{$page}>&amp;cid=<{$cid}>" method="get" style="margin:0px;text-align:center;">
				<select name="cid" onchange="submit();">
					<option value=""><{$lang_directcatsel}></option>
					<{html_options options=$category}><br />
				</select> &nbsp; &nbsp;
				<{$download_total_num}>
			</form>
		</td>
	</tr>
</table>
<br />
<!-- Start ranking loop -->
<{foreach item=ranking from=$rankings}>
	<table class="outer">
		<tr>
			<th colspan="6" align="center"><{$ranking.title}> (<{$lang_sortby}>)</th>
		</tr>
		<tr>
			<td width="5%" class="head" style="text-align:center;"><{$lang_rank}></td>
			<td width="40%" class="head" style="text-align:center;"><{$lang_title}></td>
			<td width="28%" class="head" style="text-align:center;"><{$lang_category}></td>
			<td width="10%" class="head" style="text-align:center;"><{$lang_hits}></td>
			<td width="9%" class="head" style="text-align:center;"><{$lang_rating}></td>
			<td width="8%" class="head" style="text-align:center;"><{$lang_vote}></td>
		</tr>

		<!-- Start files loop -->
		<{foreach item=file from=$ranking.file}>

			<tr>
				<td class="even" style="text-align:center;"><{$file.rank}></td>
				<td class="odd"><a href='<{$mod_url}>/index.php?page=singlefile&amp;cid=<{$file.cid}>&amp;lid=<{$file.id}>'><{$file.title}></a></td>
				<td class="even"><{$file.category}></td>
				<td class="odd" align='center'><{$file.hits}></td>
				<td class="even" align='center'><{$file.rating}></td>
				<td  style="text-align:center;"><{$file.votes}></td>
			</tr>

		<{/foreach}>
		<!-- End links loop-->

	</table>
	<br />
<{/foreach}>
<!-- End ranking loop -->
